package wsz.edu.ad.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import wsz.edu.ad.entity.PromotionSpace;
import wsz.edu.ad.service.IPromotionSpaceService;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author felix
 * @since 2022-04-25
 */
@RestController
@RequestMapping("/ad/space")
public class PromotionSpaceController {

    @Autowired
    private IPromotionSpaceService promotionSpaceService;

//    @GetMapping("/getAllSpaces")
    public List<PromotionSpace> getAllSpaces() {
        List<PromotionSpace> promotionSpaceList = promotionSpaceService.list();
        return promotionSpaceList;
    }

}
